//
//  ViewController.m
//  testStatusBar
//
//  Created by jianyong.wang on 2017/5/17.
//  Copyright © 2017年 jianyong.wang. All rights reserved.
//

#import "ViewController.h"
#import "UIImage+color.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view, typically from a nib.
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    if([self findlineviw:self.navigationController.navigationBar])
    {
        [self findlineviw:self.navigationController.navigationBar].hidden = NO;
    }
    
}
-(UIImageView*)findlineviw:(UIView*)view{
    
    if ([view isKindOfClass:[UIImageView class]]&&view.bounds.size.height<=1.0) {
        return (UIImageView*) view;
    }for (UIImageView *subview in view.subviews) {
        UIImageView *lineview = [self findlineviw:subview];
        if (lineview) {
            return lineview;
        }
    }
    return nil;
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
